package com.yanqu.road.entity.activity.huashigang;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author wpj
 * @Date 2020/9/28
 */
public class HuaShiGangStrongPoint {

    // 模块内坐标x
    int x;

    // 模块内坐标y
    int y;

    List<Point> nextList;

    int eventId;

    public HuaShiGangStrongPoint(int x, int y) {
        this.x = x;
        this.y = y;
        nextList = new ArrayList<>();
    }

    public HuaShiGangStrongPoint(int x, int y, List<Point> nextHuaShiGangStrongPointList) {
        this.x = x;
        this.y = y;
        this.nextList = nextHuaShiGangStrongPointList;
    }

    public HuaShiGangStrongPoint() {

    }

    /**
     * 添加指向的point
     * @param point
     */
    public void addNextPoint(Point point) {
        for (Point p : nextList) {
            if (p.x == point.x && p.y == point.y) {
                return;
            }
        }
        this.nextList.add(point);
    }


    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public List<Point> getNextList() {
        return nextList;
    }

    public void setNextList(List<Point> nextList) {
        this.nextList = nextList;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }
}
